import request from '@/utils/request'

// 新增违规原因
export function violationRulesAdd(data) {
  return request({
    url: '/violationRules',
    method: 'post',
    data
  })
}
// 删除违规原因
export function violationRulesDel(ids) {
  return request({
    url: `/violationRules/${ids}`,
    method: 'delete'
  })
}
// 编辑状态 /updateEnable
export function violationRulesEdit(data) {
  return request({
    url: `/violationRules/updateEnable`,
    method: 'post',
    data
  })
}
// 违规原因列表
export function violationRulesList(params) {
  return request({
    url: '/violationRules/list',
    method: 'get',
    params
  })
}
// 违规记录列表
export function violationRecordList(params) {
  return request({
    url: '/violationRecord/list',
    method: 'get',
    params
  })
}
